package example.documentbased.mainModule.controller
{
	import org.etherframework.controller.ReactiveCommand;
	
	import raix.reactive.IObservable;
	
	public class StartupCommand extends ReactiveCommand
	{
		private var _mainController:IMainController;
		
		public function StartupCommand(mainController:IMainController)
		{
			_mainController = mainController;
			markAsInitialized();
		}
		
		override public function observable():IObservable
		{
			return _mainController.getRefreshAllCommand().observable();
		}
	}
}